From 3a2ca91eae5d0325b4c14fa70234a7072fed9951 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Thu, 4 May 2017 18:24:37 +0200 Subject: [PATCH] spinbutton: Remove call to GtkSpinButton API The condition will never be true since spinbuttons aren't entries anymore. --- gtk/gtkentry.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 01d30cd07c..3e0b611094 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -51,7 +51,6 @@ #include "gtkseparatormenuitem.h" #include "gtkselection.h" #include "gtksettings.h" -#include "gtkspinbutton.h" #include "gtktextutil.h" #include "gtkwindow.h" #include "gtktreeview.h" @@ -3200,13 +3199,9 @@ gtk_entry_measure (GtkCssGadget *gadget, char_pixels = (MAX (char_width, digit_width) + PANGO_SCALE - 1) / PANGO_SCALE; if (priv->width_chars < 0) - { - min = MIN_ENTRY_WIDTH; - } + min = MIN_ENTRY_WIDTH; else - { - min = char_pixels * priv->width_chars; - } + min = char_pixels * priv->width_chars; if (priv->max_width_chars < 0) nat = min; -- 2.30.2